Telegram Group & Telegram Channel
3. Program to accept three Number and Print Largest among them.

class CommandLineArgs

{
public static void main(String args[])
{
int a, b, c;

a = Integer.parseInt(args[0]);
b = Integer.parseInt(args[1]);
c = Integer.parseInt(args[2]);

if (a > b && a > c) {
System.out.println("Largest Number is : " + a);
} else if (b > c) {
System.out.println("Largest Number is : " + b);
} else {
System.out.println("Largest Number is : " + c);
}
}
}

@java_codings



tg-me.com/java_codings/5
Create:
Last Update:

3. Program to accept three Number and Print Largest among them.

class CommandLineArgs

{
public static void main(String args[])
{
int a, b, c;

a = Integer.parseInt(args[0]);
b = Integer.parseInt(args[1]);
c = Integer.parseInt(args[2]);

if (a > b && a > c) {
System.out.println("Largest Number is : " + a);
} else if (b > c) {
System.out.println("Largest Number is : " + b);
} else {
System.out.println("Largest Number is : " + c);
}
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/5

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.

Advance Java ‍ from id


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA